package com.pzb.goods.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

/**
 * 模板数据对象 gd_freight_template_data
 * 
 * @author Mr_Wu
 * @date 2021-12-06
 */
public class GdFreightTemplateData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户ID */
    private String extAppid;

    /** 模板id */
    private Long templateId;

    /** 省份编码 */
    private String provinceCode;

    /** 0包邮 1非包邮 */
    private String type;

    /** 首次条件 */
    private Integer firstValue;

    /** 首次金额 */
    private BigDecimal firstAmount;

    /** 超出条件 */
    private Integer otherValue;

    /** 超出金额 */
    private BigDecimal otherAmount;

    /** 指定条件包邮 */
    private String appoint;

    private Integer appointValue;

    /** 单位 0件/1kg */
    private String appointType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setProvinceCode(String provinceCode) 
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() 
    {
        return provinceCode;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setFirstValue(Integer firstValue) 
    {
        this.firstValue = firstValue;
    }

    public Integer getFirstValue() 
    {
        return firstValue;
    }
    public void setFirstAmount(BigDecimal firstAmount) 
    {
        this.firstAmount = firstAmount;
    }

    public BigDecimal getFirstAmount() 
    {
        return firstAmount;
    }
    public void setOtherValue(Integer otherValue) 
    {
        this.otherValue = otherValue;
    }

    public Integer getOtherValue() 
    {
        return otherValue;
    }
    public void setOtherAmount(BigDecimal otherAmount) 
    {
        this.otherAmount = otherAmount;
    }

    public BigDecimal getOtherAmount() 
    {
        return otherAmount;
    }

    public String getAppoint() {
        return appoint;
    }

    public void setAppoint(String appoint) {
        this.appoint = appoint;
    }

    public Integer getAppointValue() {
        return appointValue;
    }

    public void setAppointValue(Integer appointValue) {
        this.appointValue = appointValue;
    }

    public void setAppointType(String appointType)
    {
        this.appointType = appointType;
    }

    public String getAppointType() 
    {
        return appointType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("templateId", getTemplateId())
            .append("provinceCode", getProvinceCode())
            .append("type", getType())
            .append("firstValue", getFirstValue())
            .append("firstAmount", getFirstAmount())
            .append("otherValue", getOtherValue())
            .append("otherAmount", getOtherAmount())
            .append("appoint", getAppoint())
            .append("appointType", getAppointType())
            .toString();
    }
}
